﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Gao.Poker.Domain
{
    public class Consumption
    {
        public Consumption()
        {
            CreateDt = DateTime.Now;
            ConsumptionProducts = new List<ConsumptionProduct>();
        }

        [Key]
        public int ID { get; set; }

        /// <summary>
        /// 会员编号
        /// </summary>
        [StringLength(20)]
        public String MemberCardNo { get; set; }

        [StringLength(50)]
        public String MemberName { get; set; }

        /// <summary>
        /// 消费金额
        /// </summary>
        public Decimal Monetary { get; set; }

        /// <summary>
        /// 消费时间
        /// </summary>
        public DateTime CreateDt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual List<ConsumptionProduct> ConsumptionProducts { get; set; } 
    }
}
